package com.leigang.monitor.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author leig-a
 * @version 1.0
 * @desc
 * @date 2023/2/17 9:20
 */
@TableName("server_monitor")
@Data
public class ServerMonitor {
    @TableId
    private String id;

    @TableField("SERVER_ID")
    private String serverId;

    @TableField("CPU")
    private BigDecimal cpu;

    @TableField("MEMORY")
    private BigDecimal memory;

    @TableField("RUN_STATUS")
    private Boolean runStatus;

    @TableField("CPU_USAGE")
    private BigDecimal cpuUsage;

    @TableField("MEMORY_USAGE")
    private BigDecimal memoryUsage;

    @TableField("DISK_MAX_USAGE")
    private BigDecimal diskMaxUsage;
}
